package com.platform.web.controller.base;

import com.platform.base.domain.BaseLocation;
import com.platform.base.domain.BaseLocationData;
import com.platform.base.service.IBaseLocationDataService;
import com.platform.common.annotation.Log;
import com.platform.common.constant.UserConstants;
import com.platform.common.core.controller.BaseController;
import com.platform.common.core.domain.AjaxResult;
import com.platform.common.core.domain.Ztree;
import com.platform.common.core.page.TableDataInfo;
import com.platform.common.enums.BusinessType;
import com.platform.common.utils.StringUtils;
import com.platform.common.utils.poi.ExcelUtil;
import com.platform.common.utils.redis.RedisUtil;
import com.platform.data.domain.MeterRead;
import com.platform.data.domain.ValveRead;
import com.platform.framework.util.ShiroUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 住户信息Controller
 * 
 * @author wangqi
 * @date 2020-09-24
 */
@Controller
@RequestMapping("/base/location/data")
public class BaseLocationDataController extends BaseController
{
    private String prefix = "base/location/data";

    @Autowired
    private IBaseLocationDataService baseLocationDataService;

    @Autowired
    private RedisUtil redisUtil;

    @RequiresPermissions("base:location:data:view")
    @GetMapping()
    public String location()
    {
        return prefix + "/location";
    }



    /**
     * 查询住户信息列表
     */
    @RequiresPermissions("base:location:data:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(BaseLocationData baseLocationData)
    {
        startPage();
        List<BaseLocationData> list = baseLocationDataService.selectBaseLocationDataList(baseLocationData);
        return getDataTable(list);
    }



   

    
}
